package 线程.终止线程.Test02;

public class ThreadTest02 {
    public static void main(String[] args) {
        MyRunnable3 m = new MyRunnable3();
        Thread t = new Thread(m);
        t.setName("t");
        t.start();
        try {
            Thread.sleep(1000 * 5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        m.run = false;
    }
}
